python get stack trace

42

python get stack trace -

# Basic syntax:
import traceback
try:
	your code here
except:
	print(traceback.format_exc())

Comments

Submit
0 Comments